<%@ page language="java"  pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/common/taglib.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>配送员</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="HandheldFriendly" content="true" />
    <meta name="viewport" content="width=320.1, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <%@ include file="/WEB-INF/views/common/resource.jsp" %>
</head>
<body>
<div class="page pt0">
    <div  onclick="location.href='${ctx}/mep/toAddMepCourier.do'" class="new_shopper_btn">添加配送员</div>
    <div class="shopper_list_box">
        <h1>配送员列表：</h1>

        <c:forEach items="${couriers}" var="courier">
            <ul onclick="location.href='${ctx}/mep/toCourierDetail.do?courier_id=${courier.courier_id}'">
            <c:choose>
                <c:when test="${courier.courier_head_img_url eq null}">
                        <li><img src="${itx}/images/shopper_head.png" width="40" /><span>${courier.courier_name}</span></li>
                </c:when>
                <c:otherwise>
                        <li><img src="${courier.courier_head_img_url}" width="40" /><span>${courier.courier_name}</span></li>
                </c:otherwise>
            </c:choose>
            </ul>
        </c:forEach>

    </div>
    <div class="footer">
        <ul>
            <li onclick="location.href='${ctx}/mep/mepIndex.do'">
                <i class="iconfont icon-icon95"></i>
                <span>主页</span>
            </li>
            <li onclick="location.href='${ctx}/mep/toMepOrderList.do'">
                <i class="iconfont icon-dingdan"></i>
                <span>订单</span>
            </li>
            <li class="onthis" onclick="location.href='${ctx}/mep/toMepCouriers.do'">
                <i class="iconfont icon-peisongfuwu"></i>
                <span>配送员</span>
            </li>
            <li onclick="location.href='${ctx}/mep/toMepCenter.do'">
                <i class="iconfont icon-wode"></i>
                <span>我的</span>
            </li>
        </ul>
    </div>
</div>
</body>
</html>
